<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 1. 先准备一个容器 -->
    <div id="app">
      <ul>
        <li v-for="item in 10">{{item}}</li>
      </ul>
      <hr />
      <ul>
        <li v-for="item in ldh">{{item}}</li>
      </ul>
    </div>
    <!-- 2. 引框架 -->
    <script src="./vue.js"></script>
    <script>
      // 3.初始化vue实例对象
      const vm = new Vue({
        el: "#app",
        data: {
          ldh: {
            name: "刘德华",
            age: 60,
          },
        },
      });
    </script>
  </body>
</html>
